package li.webqq.api;

import li.http.Request;
import li.webqq.Const;
import li.webqq.util.StringUtil;

/**
 * 获取QQ群列表 http://www.qqxieyi.com/fenxi_show.asp?id=23 QQ群类型列表 http://www.qqxieyi.com/fenxi_show.asp?id=13
 */
public class GetGroupNameListMask2Request extends Request implements Const {
    private String vfwebqq;

    public void setVfwebqq(String vfwebqq) {
        this.vfwebqq = vfwebqq;
    }

    public GetGroupNameListMask2Response execute() {
        String r = StringUtil.build(R_GET_GROUP_NAME_LIST_MASK2, vfwebqq);

        super.setUrl(URL_GET_GROUP_NAME_LIST_MASK2);
        super.setReferer(URL_PROXY);
        super.setContentType(FORM_URLENCODED);

        super.setField("r", StringUtil.encode(r));

        return super.execute(new GetGroupNameListMask2Response());
    }
}